package com.acme.task5;

public class TextModifier {
	public static void main(String[] args) {
		
		if(args.length < 1) {
			System.out.println("It must be one parameter!");
			return;
		}
		String str = args[0];
		
		for (int i = 0; i < str.length(); i++) {
			char charAtIndex = str.charAt(i);
			if(Character.isDigit(charAtIndex)) {
				str = str.replace(charAtIndex, '\0');
			}
			else if (charAtIndex == '-' || charAtIndex == '+') {
				String first = str.substring(0, i+1);
				String second = str.substring(i+1, str.length());
				str = first + charAtIndex + second;
				i++;
			}
		}
		
		System.out.println(str);
	}
}
